<!DOCTYPE html>
<html>
{include file="public/head"}

<body>
    {include file="contest/contest-nav"}
    {if condition=" !(isset($contest_start)&&$contest_start==false) "}
    <div style="margin-left:50px;margin-right:50px;">
        <table class="layui-table" lay-even lay-skin="nob">
            <colgroup>
                <col width="70">
                <col width="250">
                <col width="550">
                {if condition="($problem_link==true)"} 
                <col width="250">{/if}
                <col width="250">
            </colgroup>
            <thead>
                <tr class="layui-bg-black">
                    <th>状态</th>
                    <th>题号</th>
                    <th>题目标题</th>
                    {if condition="($problem_link==true)"} 
                    <th>题目链接</th> {/if}
                    <th>提交状况</th>
                </tr>
            </thead>
            <tbody>
                {foreach name="problem" item="v"}
                <tr>
                    <td>
                    {eq name="v.ac" value="1"}<i class="layui-icon" style="font-size: 25px; color: #5FB878;">&#xe6af;</i> {/eq}  <!-- 对勾 -->
                    {eq name="v.ac" value="-1"}<i class="layui-icon" style="font-size: 25px; color: #FF5722;">&#xe69c;</i> {/eq}
                    </td>
                    <td><a href="{:url('web/contest/problem?cid='.$list[0]['contest_id']. '&num=' .$problem[$v.num]['char_num']) }" class="fly-link fly-joinad"> {$v.char_num}</a></td>
                    <td><a href="{:url('web/contest/problem?cid='.$list[0]['contest_id']. '&num=' .$problem[$v.num]['char_num']) }" class="fly-link fly-joinad"> {$v.alias}  </a></td>
                    {if condition="($problem_link==true)"} 
                    <td><a target="_black" href="{:url('web/problem/problem',['pid'=>$v.problem_id])}" class="fly-link fly-joinad">nyoj {$v.problem_id}</a></td> {/if}
                    <td align="left">{if condition="($v.all==0)"} 0% {else /}  {:sprintf("%.0f",$v.submit/$v.all*100)}%  {/if}      ({$v.submit} / {$v.all})</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        <!-- 分割 -->
        <!-- 分割 -->
    </div>
    {/if}
    </div>
    </div>
    {include file="public/foot"}
    
     {include file="contest/post-notice"}
</body>
<script>
</script>

</html>